package main

import (
	"gitee.com/zhucheer/orange/app"
	"gitee.com/zhucheer/prome"
)

func main() {
	router := &Route{}
	app.AppStart(router)
}

type Route struct {
}

func (s *Route) ServeMux() {
	promeHandler := prome.NewPrometheus("example_do")

	gp := app.NewRouter("", prome.NewPromeMiddleware(promeHandler))

	gp.GET("/api", func(ctx *app.Context) error {
		return ctx.ToString("Hello world!")
	})
}

func (s *Route) Register() {

}
